package com.learn.mybatis.springboot.controller;

import com.learn.mybatis.springboot.config.MyBatisConnection;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/mybatis")
public class MybatisController {

    @Resource
    private MyBatisConnection myBatisConnection;

    @GetMapping("/connect")
    public void connect() {
        this.myBatisConnection.connect();
    }
}
